package com.service.fmgcode.gcode.dbconfig;

/**
 * 数据库类型
 * 
 * @author Mirren
 *
 */
public enum DBType {
	MySQL("com.mysql.cj.jdbc.Driver", "jdbc:mysql://%s:%s/%s?useUnicode=true&useSSL=false&characterEncoding=%s&serverTimezone=UTC");
	private final String driverClass;
	private final String connectionUrlPattern;

	DBType(String driverClass, String connectionUrlPattern) {
		this.driverClass = driverClass;
		this.connectionUrlPattern = connectionUrlPattern;
	}

	public String getDriverClass() {
		return driverClass;
	}

	public String getConnectionUrlPattern() {
		return connectionUrlPattern;
	}

}